﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization; // this is required

namespace DomainModel
{
    [DataContract]
    public class BaseCustomer
    {


        [DataMember]
        public int customer_id = 0;
        [DataMember]
        public string email = "";
        [DataMember]
        public string first_name = "";
        [DataMember]
        public string last_name = "";
        [DataMember]
        public string address = "";
        [DataMember]
        public string state = "";
        [DataMember]
        public int zip = 0;
        [DataMember]
        public string city = "";
        [DataMember]
        public int webmaster = 0;
        [DataMember]
        public int blockuser = 0;

        public virtual string GetAddressFormat()
        {
            String addr = address + "\n" + city + ", " + state + " " + zip.ToString();
            return addr;
        }

        public virtual string GetTitle_Name()
        {
            return first_name + last_name;
        }
    }
}
